package com.pubinfo.passbook.common.model.http.response.GetWriteoffBaseData;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class WriteoffBaseDataMessage implements Serializable {
  private static final long serialVersionUID = -9129699432886956076L;
  private String TYPE;
  private String errorMsg;
  private List<WriteoffBaseDataItem> items;
  
  public static long getSerialVersionUID() {
    return serialVersionUID;
  }
  
  @JacksonXmlProperty(localName = "TYPE")
  public String getTYPE() {
    return TYPE;
  }
  
  @JacksonXmlProperty(localName = "errorMsg")
  public String getErrorMsg() {
    return errorMsg;
  }
  
  @JacksonXmlElementWrapper(localName = "items")
  @JacksonXmlProperty(localName = "item")
  public List<WriteoffBaseDataItem> getItems() {
    return items;
  }
  
}
